
import java.util.Scanner;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author gamas
 */
public class Palindromos {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        Scanner esc= new Scanner(System.in);
        char cadenas;
        String cadena=" ";
        System.out.println("Introduce cadena ");
        String cadena1=esc.next();

       char arreglo[]=cadena1.toCharArray();

       for(int x=arreglo.length-1;x>=0;x--){


           cadenas=arreglo[x];

           cadena += Character.toString(cadenas);

        
       }
        System.out.println(cadena1.equals(cadena));
        System.out.println("normal : "+cadena1+"\n  alreves  "+cadena);

        //una cadena la compara si volteandola es la misma
    }

}
